-- GENERATED SPELL FOR [Bleeding Hollow Scryer] --


function spell0_17478(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(30615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17478', 3000, 1)
end

function spell1_17478(pUnit, Event) --@Fel Infusion,n/a--
pUnit:FullCastSpellOnTarget(30659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17478', 523, 1)
end

function spell2_17478(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(12471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17478', 3000, 1)
end

function spell3_17478(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(15232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17478', 3000, 1)
end

function Sorts_17478(pUnit, Event)
local choix_sorts_17478 = math.random(0, 3)
if choix_sorts_17478 == 0 then
pUnit:RegisterEvent('spell0_17478', 1, 1)
end
if choix_sorts_17478 == 1 then
pUnit:RegisterEvent('spell1_17478', 1, 1)
end
if choix_sorts_17478 == 2 then
pUnit:RegisterEvent('spell2_17478', 1, 1)
end
if choix_sorts_17478 == 3 then
pUnit:RegisterEvent('spell3_17478', 1, 1)
end
end

function mob17478_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17478', math.random(1500, 3000), 1)
end

function mob17478_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17478_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17478_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17478, 1, 'mob17478_Action')
RegisterUnitEvent(17478, 2, 'mob17478_Leave')
RegisterUnitEvent(17478, 3, 'mob17478_Kill')
RegisterUnitEvent(17478, 4, 'mob17478_Die')
